package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 分润记录表
 *
 * @author WeiZiDong
 */
@Table(name = "`share_profit`")
@Data
@ApiModel("分润记录表")
public class ShareProfit implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "记录id", example = "1")
    private Long id;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建时间", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "更新人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "更新时间", example = "1556946359031")
    private Date updateTime;
    @Column(name = "`delete_flag`")
    @ApiModelProperty(value = "1:删除，0：未删除", example = "1")
    private Integer deleteFlag;
    @Column(name = "`status_flag`")
    @ApiModelProperty(value = "1:启用，0：禁用", example = "1")
    private Integer statusFlag;
    @Column(name = "`taobao_order_no`")
    @ApiModelProperty(value = "淘宝订单ID", example = "1")
    private Long taobaoOrderNo;
    @Column(name = "`sharing_people`")
    @ApiModelProperty(value = "分享人ID", example = "1")
    private Long sharingPeople;
    @Column(name = "`goods_id`")
    @ApiModelProperty(value = "分享的商品ID", example = "1")
    private Long goodsId;
    @Column(name = "`order_price`")
    @ApiModelProperty(value = "订单价格", example = "1.0")
    private BigDecimal orderPrice;
    @Column(name = "`distribution_rate`")
    @ApiModelProperty(value = "分润比例", example = "String")
    private String distributionRate;
    @Column(name = "`taobaoke_estimated_ommission`")
    @ApiModelProperty(value = "淘宝客预估佣金", example = "1.0")
    private BigDecimal taobaokeEstimatedOmmission;
    @Column(name = "`commission_rate`")
    @ApiModelProperty(value = "佣金比率。1550表示15.5%", example = "String")
    private String commissionRate;
    @Column(name = "`user_estimated_commission`")
    @ApiModelProperty(value = "用户预估可得佣金", example = "1.0")
    private BigDecimal userEstimatedCommission;

    private static final long serialVersionUID = 1L;
}
